package reflect;

import reflect.annotation.AutoRunClass;

import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
public class ReflectDemo10 {
    public static void main(String[] args) throws Exception {
      Class cls =Class.forName("reflect.Person");
      boolean mark =cls.isAnnotationPresent(AutoRunClass.class);
      if(mark){
          System.out.println("有注解");
      }else {
          System.out.println("没有注解");
      }
    }
}
